#! /bin/bash

mkdir -p cornice-800
mogrify -resize '800x800' -monitor -path "cornice-800/" -compress JPEG -quality 90 -auto-orient *JPG
mogrify -resize '800x800' -monitor -path "cornice-800/" -compress JPEG -quality 90 -auto-orient *jpg

cd cornice-800
rename 's/ /_/g' *
find -type f -exec exiv2 -r'%Y%m%d-%H%M__:basename:' rename '{}' \;


